package com.itkaien.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.itkaien.dto.GoodLedgetDto;
import com.itkaien.pojo.Ledger;
import org.springframework.stereotype.Service;

@Service
public interface LedgerService {

    /**
     * 添加台账流水信息
     * @param ledger
     */
    void addLedger(Ledger ledger);

    /**
     * 获取台账流水信息
     * @param goodsId
     * @param start
     * @param pageSize
     * @return
     */
    PageInfo<GoodLedgetDto> getpageAllledger(Integer goodsId,Integer start,Integer pageSize);
}
